//登陆注册
// src/hooks/useEmitter.js
//借助 Event Bus进行组件间的通信
import { getCurrentInstance } from 'vue'

export default function useEmitter() {
    const internalInstance = getCurrentInstance()
    const emitter = internalInstance.appContext.config.globalProperties.emitter

    return emitter
}